export const state = {
    bindPhoneShow: false,//控制是否打开绑定手机号弹窗
	loginPopupShow:false,//控制是否打开登录弹窗
    loadingShow: false,//加载动画
    chatScenesInfo: {},//扫码参数
    locateInformation: {},//定位信息
	distributionId:"",//分销员id
};
//缓存浏览器的数据名称
const cacheNameList = ["userInfo","distributionId"];
let clearTime;
export const mutations = {
    //取出缓存数据（打开APP就取出）
    setCacheData(state) {
        for (let name of cacheNameList) {
            let data;
            data = uni.getStorageSync(name);
            if (data) {
                state[name] = data;
            }
        }
    },
    setBindPhonePopupShow(state, data){
        state.bindPhoneShow = data
    },
	setLoginPopupShow(state, data){
	    state.loginPopupShow = data
	},
	setLoadingShow(state, data){
	    state.loadingShow = data
	},
    setChatScenesInfo(state, data){
        state.chatScenesInfo = data
    },
    setLocateInformation(state, data){
        state.locateInformation = data
    },
	setDistributionId(state, data){
	    state.distributionId = data
	},
};
export const actions = {
  
};
